package com.example.demo.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hanfei
 * @since 2020-04-08
 */
public interface IUserService extends IService<User> {
        Page<User> findByKey(Page<User> var1, @Param("key") String key);
        Page<User> findByKeyAndAll(Page<User> var1, @Param("key") String key, @Param("entity") User entity);
        User findByUsername(String username);
        User login(@Param("username") String username, @Param("password") String password);

}
